package bookpos.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import bookpos.dao.PaymentDao;
import bookpos.entity.Payment;
import bookpos.service.PaymentService;
/**
 * 支付业务实现类
 * @author WZB
 *
 */
@Service
public class PaymentServiceImpl implements PaymentService {
	@Autowired
	private PaymentDao dao;

	public void save(Payment vo) {
		dao.save(vo);
		
	}
	public void update(Payment vo) {
		dao.update(vo);
		
	}
	public void delete(int id) {
		Payment vo = dao.get(id);
		dao.delete(vo);
	}

	public List<Payment> findAll(int page, int rows, String sort, String order) {
		return dao.findAll(page, rows, sort, order);
	}

	public int getTotal() {
		return dao.countAll();
	}

	public void savePayment(String oid, String getmoney, String backmoney,
			String total, String status) {
		dao.save(new Payment());
		
	}
}
